//
//  CustomButton.m
//  007
//
//  Created by admin on 15/11/10.
//  Copyright (c) 2015年 REDOOR. All rights reserved.
//

#import "CustomButton.h"

@implementation CustomButton
- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    CGFloat x=contentRect.size.height+5*W;
    CGFloat y=0;
    CGFloat w=contentRect.size.width-contentRect.size.height;
    CGFloat h=contentRect.size.height;
    CGRect rect=CGRectMake(x, y, w, h);
    return rect;

}
- (CGRect)imageRectForContentRect:(CGRect)contentRect{
    CGFloat x=0;
    CGFloat y=0;
    CGFloat w=contentRect.size.height;
    CGFloat h=w;
    CGRect rect=CGRectMake(x, y, w, h);
    return rect;
 
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
